webpackJsonp([0],{

/***/ 328:
/***/ (function(module, exports, __webpack_require__) {

var disposed = false
function injectStyle (ssrContext) {
  if (disposed) return
  __webpack_require__(354)
}
var normalizeComponent = __webpack_require__(8)
/* script */
var __vue_script__ = __webpack_require__(356)
/* template */
var __vue_template__ = __webpack_require__(361)
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5b71b081"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __vue_script__,
  __vue_template__,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)
Component.options.__file = "resources\\assets\\js\\pages\\Entering.vue"

/* hot reload */
if (false) {(function () {
  var hotAPI = require("vue-hot-reload-api")
  hotAPI.install(require("vue"), false)
  if (!hotAPI.compatible) return
  module.hot.accept()
  if (!module.hot.data) {
    hotAPI.createRecord("data-v-5b71b081", Component.options)
  } else {
    hotAPI.reload("data-v-5b71b081", Component.options)
  }
  module.hot.dispose(function (data) {
    disposed = true
  })
})()}

module.exports = Component.exports


/***/ }),

/***/ 335:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = {
  getPrintOut: function getPrintOut(id) {
    //导出excl表
    return axios.get('api/print-info/' + id);
  },
  getEnrollSituation: function getEnrollSituation() {
    //获取学校招生情况
    return axios.get('api/situation-info');
  },
  postImportInfo: function postImportInfo(file) {
    //导入excl表
    return axios.post('api/import', file, { headers: { 'Content-Type': 'multipart/form-data' } });
  },
  postSchoolUpperLimit: function postSchoolUpperLimit(id, upperLimit) {
    //重设幼儿园预计招生数
    return axios.post('/api/' + id, {
      upper_limit: upperLimit
    });
  },
  getDeleteStudent: function getDeleteStudent(id) {
    // 删除报名学生
    return axios.get('/api/' + id);
  },
  getEnrollAll: function getEnrollAll(id) {
    //录取所有学生
    return axios.get('/api/all-enroll/' + id);
  },
  getStudentInfo: function getStudentInfo(id) {
    //录入页面
    return axios.get('/api/sign-up/' + id);
  },
  getPolice: function getPolice(id) {
    //录入页面根据幼儿园code获取派出所
    return axios.get('/api/police/' + id);
  }
};

/***/ }),

/***/ 336:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _isIterable2 = __webpack_require__(337);

var _isIterable3 = _interopRequireDefault(_isIterable2);

var _getIterator2 = __webpack_require__(340);

var _getIterator3 = _interopRequireDefault(_getIterator2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = function () {
  function sliceIterator(arr, i) {
    var _arr = [];
    var _n = true;
    var _d = false;
    var _e = undefined;

    try {
      for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
        _arr.push(_s.value);

        if (i && _arr.length === i) break;
      }
    } catch (err) {
      _d = true;
      _e = err;
    } finally {
      try {
        if (!_n && _i["return"]) _i["return"]();
      } finally {
        if (_d) throw _e;
      }
    }

    return _arr;
  }

  return function (arr, i) {
    if (Array.isArray(arr)) {
      return arr;
    } else if ((0, _isIterable3.default)(Object(arr))) {
      return sliceIterator(arr, i);
    } else {
      throw new TypeError("Invalid attempt to destructure non-iterable instance");
    }
  };
}();

/***/ }),

/***/ 337:
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__(338), __esModule: true };

/***/ }),

/***/ 338:
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(71);
__webpack_require__(70);
module.exports = __webpack_require__(339);


/***/ }),

/***/ 339:
/***/ (function(module, exports, __webpack_require__) {

var classof = __webpack_require__(72);
var ITERATOR = __webpack_require__(5)('iterator');
var Iterators = __webpack_require__(27);
module.exports = __webpack_require__(7).isIterable = function (it) {
  var O = Object(it);
  return O[ITERATOR] !== undefined
    || '@@iterator' in O
    // eslint-disable-next-line no-prototype-builtins
    || Iterators.hasOwnProperty(classof(O));
};


/***/ }),

/***/ 340:
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__(341), __esModule: true };

/***/ }),

/***/ 341:
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(71);
__webpack_require__(70);
module.exports = __webpack_require__(342);


/***/ }),

/***/ 342:
/***/ (function(module, exports, __webpack_require__) {

var anObject = __webpack_require__(14);
var get = __webpack_require__(123);
module.exports = __webpack_require__(7).getIterator = function (it) {
  var iterFn = get(it);
  if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
  return anObject(iterFn.call(it));
};


/***/ }),

/***/ 354:
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(355);
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var update = __webpack_require__(10)("2a74463f", content, false, {});
// Hot Module Replacement
if(false) {
 // When the styles change, update the <style> tags
 if(!content.locals) {
   module.hot.accept("!!../../../../node_modules/css-loader/index.js!../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-5b71b081\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../node_modules/sass-loader/lib/loader.js!../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./Entering.vue", function() {
     var newContent = require("!!../../../../node_modules/css-loader/index.js!../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-5b71b081\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../node_modules/sass-loader/lib/loader.js!../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./Entering.vue");
     if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
     update(newContent);
   });
 }
 // When the module is disposed, remove the <style> tags
 module.hot.dispose(function() { update(); });
}

/***/ }),

/***/ 355:
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__(9)(false);
// imports


// module
exports.push([module.i, "\n.all-list[data-v-5b71b081] {\n  font-size: 14px;\n}\n.all-list .second-title[data-v-5b71b081] {\n    background: #f1f2f6;\n    height: 40px;\n    line-height: 40px;\n    color: #6c7d43;\n    width: 100%;\n}\n.all-list .second-title span[data-v-5b71b081] {\n      padding-left: 32px;\n      font-size: 13px;\n}\n.all-list .colorRed[data-v-5b71b081] {\n    color: red;\n}\n", ""]);

// exports


/***/ }),

/***/ 356:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _slicedToArray2 = __webpack_require__(336);

var _slicedToArray3 = _interopRequireDefault(_slicedToArray2);

var _promise = __webpack_require__(122);

var _promise2 = _interopRequireDefault(_promise);

var _ListDataSource = __webpack_require__(124);

var _ListDataSource2 = _interopRequireDefault(_ListDataSource);

var _data = __webpack_require__(335);

var _data2 = _interopRequireDefault(_data);

var _checkbox = __webpack_require__(357);

var _checkbox2 = _interopRequireDefault(_checkbox);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = {
  components: { ElCheckbox: _checkbox2.default },
  data: function data() {
    return {
      model: this.$modelDataSource({
        url: '/api/sign-up',
        dataKey: 'model',
        attributes: {
          children: [{
            name: '',
            sex: '',
            nation: '',
            police_station_id: '',
            school_id: '',
            id_code: '',
            prophylactic_code: '',
            relation: ''

          }],
          school_id: '',
          sex: '',
          nation: '',
          police_station_id: '',
          twins: 1,
          relation: '',
          prophylactic_code: '',
          section_id: '',
          father_name: '',
          father_works: '',
          father_id_code: '',
          father_phone_number: '',
          mother_name: '',
          mother_id_code: '',
          mother_works: '',
          mother_phone_number: '',
          family_address: ''
        }
      }),
      checked: false,
      EnrollList: new _ListDataSource2.default('/api/situation-info'),
      isLoading: false,
      ruleValidate: {
        children: {
          type: "array", required: true,
          fields: {
            0: {
              type: "object", required: true,
              name: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
              school_id: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
              sex: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
              nation: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
              police_station_id: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
              id_code: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
              relation: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
              prophylactic_code: [{ required: true, message: '此项目为必填项', trigger: 'blur' }]
            }

          }
        },
        section_id: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
        father_name: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
        father_works: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
        father_id_code: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
        father_phone_number: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
        mother_name: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
        mother_id_code: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
        mother_works: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
        mother_phone_number: [{ required: true, message: '此项目为必填项', trigger: 'blur' }],
        family_address: [{ required: true, message: '此项目为必填项', trigger: 'blur' }]
      },
      policeList: {},
      schoolList: [{ name: '所有幼儿园', id: '0' }, { name: '第一幼儿园', id: '101' }, { name: '第二幼儿园', id: '102' }, { name: '第四幼儿园', id: '104' }, { name: '模范幼儿园', id: '106' }, { name: '第三幼儿园', id: '103' }, { name: '第五幼儿园', id: '105' }],
      userId: '',
      loading: false
    };
  },
  created: function created() {
    var self = this;
    console.log(this.$store.state.user);
    self.userId = self.$route.params.user_id;
    self.model.school_id = this.$store.state.user.school_id;
    this.isLoading = true;
    _promise2.default.all([self.EnrollList.fetchData(), _data2.default.getPolice(self.model.school_id)]).then(function (_ref) {
      var _ref2 = (0, _slicedToArray3.default)(_ref, 2),
          enrollRes = _ref2[0],
          PoliceRes = _ref2[1];

      self.policeList = PoliceRes.data;
      self.isLoading = false;
    }).catch(function (error) {
      self.isLoading = false;
    });
  },

  methods: {
    goPage: function goPage(event) {
      var self = this;
      var query = _.assign({ page: event.page }, self.queryString);
      self.tableList.fetchData(query);
    },
    showDialog: function showDialog() {},
    addChild: function addChild() {
      this.model.children.push({ 'name': '', 'id_code': '' });
    },
    setTwins: function setTwins() {
      if (!this.checked) {
        var arr = this.model.children[0];
        this.model.children = [];
        this.model.children[0] = arr;
      } else {
        if (this.model.children.length = 1) {
          this.model.children.push({ 'name': '', 'id_code': '' });
        }
      }
    },
    complateNum: function complateNum(num1, num2) {
      if (num1 > num2) {
        return true;
      } else {
        return false;
      }
    },
    saveModel: function saveModel() {
      var self = this;
      console.log(self.model);
      self.$refs['model'].validate(function (valid) {
        if (valid) {
          console.log('表单验证通过');
          self.loading = true;
          self.model.save(function () {
            self.$Notice.success({
              title: '保存成功',
              desc: self.model.name
            });
            self.loading = false;
          }, function () {
            self.loading = false;
          });
        } else {
          console.log('表单验证失败');
        }
      });
    },
    logout: function logout() {
      axios.post('/logout', {}).then(function (response) {
        Cookie.remove('user');
        window.location.reload();
      }).catch(function (error) {
        console.log(error);
      });
    }
  },
  compute: {
    user: function user() {
      return this.$store.state.user;
    }
  },
  watch: {
    'userId': function userId(value) {
      var self = this;
      if (value !== 0) {
        _data2.default.getStudentInfo(value).then(function (res) {
          self.model = res.data.data;
        }).catch(function (err) {
          console.log(err.response);
        });
      }
    }
  }
}; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/***/ }),

/***/ 357:
/***/ (function(module, exports, __webpack_require__) {

var disposed = false
var normalizeComponent = __webpack_require__(8)
/* script */
var __vue_script__ = __webpack_require__(358)
/* template */
var __vue_template__ = __webpack_require__(360)
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __vue_script__,
  __vue_template__,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)
Component.options.__file = "node_modules\\element-ui\\packages\\checkbox\\src\\checkbox.vue"

/* hot reload */
if (false) {(function () {
  var hotAPI = require("vue-hot-reload-api")
  hotAPI.install(require("vue"), false)
  if (!hotAPI.compatible) return
  module.hot.accept()
  if (!module.hot.data) {
    hotAPI.createRecord("data-v-74711738", Component.options)
  } else {
    hotAPI.reload("data-v-74711738", Component.options)
  }
  module.hot.dispose(function (data) {
    disposed = true
  })
})()}

module.exports = Component.exports


/***/ }),

/***/ 358:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _emitter = __webpack_require__(359);

var _emitter2 = _interopRequireDefault(_emitter);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = {
  name: 'ElCheckbox',

  mixins: [_emitter2.default],

  inject: {
    elForm: {
      default: ''
    },
    elFormItem: {
      default: ''
    }
  },

  componentName: 'ElCheckbox',

  data: function data() {
    return {
      selfModel: false,
      focus: false,
      isLimitExceeded: false
    };
  },


  computed: {
    model: {
      get: function get() {
        return this.isGroup ? this.store : this.value !== undefined ? this.value : this.selfModel;
      },
      set: function set(val) {
        if (this.isGroup) {
          this.isLimitExceeded = false;
          this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true);

          this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true);

          this.isLimitExceeded === false && this.dispatch('ElCheckboxGroup', 'input', [val]);
        } else {
          this.$emit('input', val);
          this.selfModel = val;
        }
      }
    },

    isChecked: function isChecked() {
      if ({}.toString.call(this.model) === '[object Boolean]') {
        return this.model;
      } else if (Array.isArray(this.model)) {
        return this.model.indexOf(this.label) > -1;
      } else if (this.model !== null && this.model !== undefined) {
        return this.model === this.trueLabel;
      }
    },
    isGroup: function isGroup() {
      var parent = this.$parent;
      while (parent) {
        if (parent.$options.componentName !== 'ElCheckboxGroup') {
          parent = parent.$parent;
        } else {
          this._checkboxGroup = parent;
          return true;
        }
      }
      return false;
    },
    store: function store() {
      return this._checkboxGroup ? this._checkboxGroup.value : this.value;
    },
    isDisabled: function isDisabled() {
      return this.isGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled : this.disabled || (this.elForm || {}).disabled;
    },
    _elFormItemSize: function _elFormItemSize() {
      return (this.elFormItem || {}).elFormItemSize;
    },
    checkboxSize: function checkboxSize() {
      var temCheckboxSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
      return this.isGroup ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize : temCheckboxSize;
    }
  },

  props: {
    value: {},
    label: {},
    indeterminate: Boolean,
    disabled: Boolean,
    checked: Boolean,
    name: String,
    trueLabel: [String, Number],
    falseLabel: [String, Number],
    id: String, /* 当indeterminate为真时，为controls提供相关连的checkbox的id，表明元素间的控制关系*/
    controls: String, /* 当indeterminate为真时，为controls提供相关连的checkbox的id，表明元素间的控制关系*/
    border: Boolean,
    size: String
  },

  methods: {
    addToStore: function addToStore() {
      if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) {
        this.model.push(this.label);
      } else {
        this.model = this.trueLabel || true;
      }
    },
    handleChange: function handleChange(ev) {
      var _this = this;

      if (this.isLimitExceeded) return;
      var value = void 0;
      if (ev.target.checked) {
        value = this.trueLabel === undefined ? true : this.trueLabel;
      } else {
        value = this.falseLabel === undefined ? false : this.falseLabel;
      }
      this.$emit('change', value, ev);
      this.$nextTick(function () {
        if (_this.isGroup) {
          _this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]);
        }
      });
    }
  },

  created: function created() {
    this.checked && this.addToStore();
  },
  mounted: function mounted() {
    // 为indeterminate元素 添加aria-controls 属性
    if (this.indeterminate) {
      this.$el.setAttribute('aria-controls', this.controls);
    }
  }
}; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/***/ }),

/***/ 359:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
function broadcast(componentName, eventName, params) {
  this.$children.forEach(child => {
    var name = child.$options.componentName;

    if (name === componentName) {
      child.$emit.apply(child, [eventName].concat(params));
    } else {
      broadcast.apply(child, [componentName, eventName].concat([params]));
    }
  });
}
/* harmony default export */ __webpack_exports__["default"] = ({
  methods: {
    dispatch(componentName, eventName, params) {
      var parent = this.$parent || this.$root;
      var name = parent.$options.componentName;

      while (parent && (!name || name !== componentName)) {
        parent = parent.$parent;

        if (parent) {
          name = parent.$options.componentName;
        }
      }
      if (parent) {
        parent.$emit.apply(parent, [eventName].concat(params));
      }
    },
    broadcast(componentName, eventName, params) {
      broadcast.call(this, componentName, eventName, params);
    }
  }
});


/***/ }),

/***/ 360:
/***/ (function(module, exports, __webpack_require__) {

var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "label",
    {
      staticClass: "el-checkbox",
      class: [
        _vm.border && _vm.checkboxSize
          ? "el-checkbox--" + _vm.checkboxSize
          : "",
        { "is-disabled": _vm.isDisabled },
        { "is-bordered": _vm.border },
        { "is-checked": _vm.isChecked }
      ],
      attrs: {
        role: "checkbox",
        "aria-checked": _vm.indeterminate ? "mixed" : _vm.isChecked,
        "aria-disabled": _vm.isDisabled,
        id: _vm.id
      }
    },
    [
      _c(
        "span",
        {
          staticClass: "el-checkbox__input",
          class: {
            "is-disabled": _vm.isDisabled,
            "is-checked": _vm.isChecked,
            "is-indeterminate": _vm.indeterminate,
            "is-focus": _vm.focus
          },
          attrs: { "aria-checked": "mixed" }
        },
        [
          _c("span", { staticClass: "el-checkbox__inner" }),
          _vm._v(" "),
          _vm.trueLabel || _vm.falseLabel
            ? _c("input", {
                directives: [
                  {
                    name: "model",
                    rawName: "v-model",
                    value: _vm.model,
                    expression: "model"
                  }
                ],
                staticClass: "el-checkbox__original",
                attrs: {
                  type: "checkbox",
                  name: _vm.name,
                  disabled: _vm.isDisabled,
                  "true-value": _vm.trueLabel,
                  "false-value": _vm.falseLabel
                },
                domProps: {
                  checked: Array.isArray(_vm.model)
                    ? _vm._i(_vm.model, null) > -1
                    : _vm._q(_vm.model, _vm.trueLabel)
                },
                on: {
                  change: [
                    function($event) {
                      var $$a = _vm.model,
                        $$el = $event.target,
                        $$c = $$el.checked ? _vm.trueLabel : _vm.falseLabel
                      if (Array.isArray($$a)) {
                        var $$v = null,
                          $$i = _vm._i($$a, $$v)
                        if ($$el.checked) {
                          $$i < 0 && (_vm.model = $$a.concat([$$v]))
                        } else {
                          $$i > -1 &&
                            (_vm.model = $$a
                              .slice(0, $$i)
                              .concat($$a.slice($$i + 1)))
                        }
                      } else {
                        _vm.model = $$c
                      }
                    },
                    _vm.handleChange
                  ],
                  focus: function($event) {
                    _vm.focus = true
                  },
                  blur: function($event) {
                    _vm.focus = false
                  }
                }
              })
            : _c("input", {
                directives: [
                  {
                    name: "model",
                    rawName: "v-model",
                    value: _vm.model,
                    expression: "model"
                  }
                ],
                staticClass: "el-checkbox__original",
                attrs: {
                  type: "checkbox",
                  disabled: _vm.isDisabled,
                  name: _vm.name
                },
                domProps: {
                  value: _vm.label,
                  checked: Array.isArray(_vm.model)
                    ? _vm._i(_vm.model, _vm.label) > -1
                    : _vm.model
                },
                on: {
                  change: [
                    function($event) {
                      var $$a = _vm.model,
                        $$el = $event.target,
                        $$c = $$el.checked ? true : false
                      if (Array.isArray($$a)) {
                        var $$v = _vm.label,
                          $$i = _vm._i($$a, $$v)
                        if ($$el.checked) {
                          $$i < 0 && (_vm.model = $$a.concat([$$v]))
                        } else {
                          $$i > -1 &&
                            (_vm.model = $$a
                              .slice(0, $$i)
                              .concat($$a.slice($$i + 1)))
                        }
                      } else {
                        _vm.model = $$c
                      }
                    },
                    _vm.handleChange
                  ],
                  focus: function($event) {
                    _vm.focus = true
                  },
                  blur: function($event) {
                    _vm.focus = false
                  }
                }
              })
        ]
      ),
      _vm._v(" "),
      _vm.$slots.default || _vm.label
        ? _c(
            "span",
            { staticClass: "el-checkbox__label" },
            [
              _vm._t("default"),
              _vm._v(" "),
              !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e()
            ],
            2
          )
        : _vm._e()
    ]
  )
}
var staticRenderFns = []
render._withStripped = true
module.exports = { render: render, staticRenderFns: staticRenderFns }
if (false) {
  module.hot.accept()
  if (module.hot.data) {
    require("vue-hot-reload-api")      .rerender("data-v-74711738", module.exports)
  }
}

/***/ }),

/***/ 361:
/***/ (function(module, exports, __webpack_require__) {

var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    { staticClass: "all-list" },
    [
      _c("el-card", { staticClass: "container mt-4 mb-5 pb-5" }, [
        _c(
          "div",
          {
            staticClass: "clearfix",
            attrs: { slot: "header" },
            slot: "header"
          },
          [
            _c("span", [
              _c("span", { staticClass: "card-header-box" }),
              _vm._v("完善信息")
            ]),
            _vm._v(" "),
            _c(
              "a",
              {
                staticClass: "list-button float-right p-1 border-0",
                attrs: { href: "javascript:;" },
                on: { click: _vm.logout }
              },
              [_vm._v("登出")]
            ),
            _vm._v(" "),
            _c(
              "button",
              {
                staticClass: "list-button float-right p-1",
                on: { click: _vm.showDialog }
              },
              [_vm._v("查看结果")]
            )
          ]
        ),
        _vm._v(" "),
        _c("div", { staticClass: "card-body p-0" }, [
          _c("div", { staticClass: "second-title mb-4" }, [
            _c("span", [_vm._v("报名情况")])
          ]),
          _vm._v(" "),
          _c(
            "div",
            {
              staticClass: "d-flex justify-content-center flex-wrap mb-5",
              attrs: { loading: _vm.isLoading }
            },
            [
              _vm._l(_vm.EnrollList.items, function(item, index) {
                return [
                  _c(
                    "el-col",
                    { staticClass: "mt-3", attrs: { span: 7, offset: 2 } },
                    [
                      _c("span", { staticClass: "mr-5 pr-5" }, [
                        _vm._v(
                          "NO." +
                            _vm._s(index + 1) +
                            " 静海" +
                            _vm._s(item.school_name)
                        )
                      ]),
                      _vm._v(" "),
                      _c(
                        "span",
                        {
                          class: _vm.complateNum(
                            item.registration_numbers,
                            item.upper_limit
                          )
                            ? _vm.colorRed
                            : ""
                        },
                        [
                          _vm._v(
                            "\n                        " +
                              _vm._s(item.registration_numbers)
                          ),
                          _c("span", [_vm._v(" / ")]),
                          _vm._v(_vm._s(item.upper_limit))
                        ]
                      )
                    ]
                  )
                ]
              })
            ],
            2
          ),
          _vm._v(" "),
          _c("div", { staticClass: "second-title mb-4" }, [
            _c("span", [_vm._v("幼儿信息")])
          ]),
          _vm._v(" "),
          _c(
            "div",
            [
              _c(
                "el-form",
                {
                  ref: "model",
                  staticStyle: { width: "100%" },
                  attrs: {
                    model: _vm.model,
                    rules: _vm.ruleValidate,
                    "label-width": "155px"
                  }
                },
                [
                  _vm._l(_vm.model.children, function(child, index) {
                    return [
                      index == 0
                        ? [
                            _c(
                              "el-col",
                              { attrs: { span: 8, offset: 3 } },
                              [
                                _c(
                                  "el-form-item",
                                  {
                                    staticClass: "mb-3",
                                    attrs: {
                                      label: "幼儿姓名: ",
                                      prop: "children.0.name"
                                    }
                                  },
                                  [
                                    _c("el-input", {
                                      attrs: { placeholder: "请输入姓名" },
                                      model: {
                                        value: child.name,
                                        callback: function($$v) {
                                          _vm.$set(child, "name", $$v)
                                        },
                                        expression: "child.name"
                                      }
                                    })
                                  ],
                                  1
                                )
                              ],
                              1
                            ),
                            _vm._v(" "),
                            _c(
                              "el-col",
                              { attrs: { span: 8, offset: 1 } },
                              [
                                _c(
                                  "el-form-item",
                                  {
                                    staticClass: "mb-3",
                                    attrs: {
                                      label: "学生幼儿园选择: ",
                                      prop: "school_id"
                                    }
                                  },
                                  [
                                    _c(
                                      "el-select",
                                      {
                                        staticStyle: { width: "100%" },
                                        attrs: {
                                          clearable: "",
                                          placeholder: "请选择学校",
                                          disabled: true
                                        },
                                        model: {
                                          value: child.school_id,
                                          callback: function($$v) {
                                            _vm.$set(child, "school_id", $$v)
                                          },
                                          expression: "child.school_id"
                                        }
                                      },
                                      _vm._l(_vm.schoolList, function(item) {
                                        return _c("el-option", {
                                          key: item.id,
                                          attrs: {
                                            label: item.name,
                                            value: item.id
                                          }
                                        })
                                      })
                                    )
                                  ],
                                  1
                                )
                              ],
                              1
                            ),
                            _vm._v(" "),
                            _c(
                              "el-col",
                              { attrs: { span: 8, offset: 3 } },
                              [
                                _c(
                                  "el-form-item",
                                  {
                                    staticClass: "mb-3",
                                    attrs: { label: "幼儿性别: ", prop: "sex" }
                                  },
                                  [
                                    _c(
                                      "el-radio",
                                      {
                                        staticClass: "mt-2",
                                        attrs: { label: "0" },
                                        model: {
                                          value: child.sex,
                                          callback: function($$v) {
                                            _vm.$set(child, "sex", $$v)
                                          },
                                          expression: "child.sex"
                                        }
                                      },
                                      [_vm._v("男\n                        ")]
                                    ),
                                    _vm._v(" "),
                                    _c(
                                      "el-radio",
                                      {
                                        staticClass: "mt-2",
                                        attrs: { label: "1" },
                                        model: {
                                          value: child.sex,
                                          callback: function($$v) {
                                            _vm.$set(child, "sex", $$v)
                                          },
                                          expression: "child.sex"
                                        }
                                      },
                                      [_vm._v("女\n                        ")]
                                    )
                                  ],
                                  1
                                )
                              ],
                              1
                            ),
                            _vm._v(" "),
                            _c(
                              "el-col",
                              { attrs: { span: 8, offset: 1 } },
                              [
                                _c(
                                  "el-form-item",
                                  {
                                    staticClass: "mb-3",
                                    attrs: {
                                      label: "幼儿名族: ",
                                      prop: "nation"
                                    }
                                  },
                                  [
                                    _c("el-input", {
                                      attrs: { placeholder: "请输入幼儿名族" },
                                      model: {
                                        value: child.nation,
                                        callback: function($$v) {
                                          _vm.$set(child, "nation", $$v)
                                        },
                                        expression: "child.nation"
                                      }
                                    })
                                  ],
                                  1
                                )
                              ],
                              1
                            ),
                            _vm._v(" "),
                            _c(
                              "el-col",
                              { attrs: { span: 8, offset: 3 } },
                              [
                                _c(
                                  "el-form-item",
                                  {
                                    staticClass: "mb-3",
                                    attrs: {
                                      label: "幼儿身份证号: ",
                                      prop: "id_code"
                                    }
                                  },
                                  [
                                    _c("el-input", {
                                      attrs: {
                                        placeholder: "请输入幼儿身份证号"
                                      },
                                      model: {
                                        value: child.id_code,
                                        callback: function($$v) {
                                          _vm.$set(child, "id_code", $$v)
                                        },
                                        expression: "child.id_code"
                                      }
                                    })
                                  ],
                                  1
                                )
                              ],
                              1
                            ),
                            _vm._v(" "),
                            _c(
                              "el-col",
                              { attrs: { span: 8, offset: 1 } },
                              [
                                _c(
                                  "el-form-item",
                                  {
                                    staticClass: "mb-3",
                                    attrs: {
                                      label: "学生防御接种证号: ",
                                      prop: "prophylactic_code"
                                    }
                                  },
                                  [
                                    _c("el-input", {
                                      attrs: {
                                        placeholder: "请输入学生防御接种证号"
                                      },
                                      model: {
                                        value: child.prophylactic_code,
                                        callback: function($$v) {
                                          _vm.$set(
                                            child,
                                            "prophylactic_code",
                                            $$v
                                          )
                                        },
                                        expression: "child.prophylactic_code"
                                      }
                                    })
                                  ],
                                  1
                                )
                              ],
                              1
                            ),
                            _vm._v(" "),
                            _c(
                              "el-col",
                              { attrs: { span: 8, offset: 3 } },
                              [
                                _c(
                                  "el-form-item",
                                  {
                                    staticClass: "mb-3",
                                    attrs: {
                                      label: "幼儿户及所属派出所: ",
                                      prop: "police_station_id"
                                    }
                                  },
                                  [
                                    _c(
                                      "el-select",
                                      {
                                        staticStyle: { width: "100%" },
                                        attrs: {
                                          clearable: "",
                                          placeholder:
                                            "请选择幼儿户及所属派出所"
                                        },
                                        model: {
                                          value: child.police_station_id,
                                          callback: function($$v) {
                                            _vm.$set(
                                              child,
                                              "police_station_id",
                                              $$v
                                            )
                                          },
                                          expression: "child.police_station_id"
                                        }
                                      },
                                      _vm._l(_vm.policeList, function(item) {
                                        return _c("el-option", {
                                          key: item.id,
                                          attrs: {
                                            label: item.name,
                                            value: item.id
                                          }
                                        })
                                      })
                                    )
                                  ],
                                  1
                                )
                              ],
                              1
                            ),
                            _vm._v(" "),
                            _c(
                              "el-col",
                              { attrs: { span: 8, offset: 1 } },
                              [
                                _c(
                                  "el-form-item",
                                  {
                                    staticClass: "mb-3",
                                    attrs: {
                                      label: "户主与幼儿关系: ",
                                      prop: "relation"
                                    }
                                  },
                                  [
                                    _c("el-input", {
                                      attrs: {
                                        placeholder: "请输入户主与幼儿关系"
                                      },
                                      model: {
                                        value: child.relation,
                                        callback: function($$v) {
                                          _vm.$set(child, "relation", $$v)
                                        },
                                        expression: "child.relation"
                                      }
                                    })
                                  ],
                                  1
                                )
                              ],
                              1
                            ),
                            _vm._v(" "),
                            _c(
                              "el-col",
                              { attrs: { span: 21, offset: 3 } },
                              [
                                _c(
                                  "el-form-item",
                                  {
                                    staticClass: "mb-3",
                                    attrs: { label: "多胞胎选择: " }
                                  },
                                  [
                                    _c(
                                      "el-checkbox",
                                      {
                                        staticClass: "mb-3",
                                        on: { change: _vm.setTwins },
                                        model: {
                                          value: _vm.checked,
                                          callback: function($$v) {
                                            _vm.checked = $$v
                                          },
                                          expression: "checked"
                                        }
                                      },
                                      [
                                        _vm._v(
                                          "多胞胎\n                        "
                                        )
                                      ]
                                    )
                                  ],
                                  1
                                )
                              ],
                              1
                            )
                          ]
                        : [
                            _vm.checked
                              ? _c(
                                  "div",
                                  [
                                    _c(
                                      "el-col",
                                      { attrs: { span: 8, offset: 3 } },
                                      [
                                        _c(
                                          "el-form-item",
                                          {
                                            staticClass: "mb-3",
                                            attrs: {
                                              label: "幼儿姓名: ",
                                              prop: "name"
                                            }
                                          },
                                          [
                                            _c("el-input", {
                                              attrs: {
                                                placeholder: "请输入姓名"
                                              },
                                              model: {
                                                value: child.name,
                                                callback: function($$v) {
                                                  _vm.$set(child, "name", $$v)
                                                },
                                                expression: "child.name"
                                              }
                                            })
                                          ],
                                          1
                                        )
                                      ],
                                      1
                                    ),
                                    _vm._v(" "),
                                    _c(
                                      "el-col",
                                      { attrs: { span: 8, offset: 1 } },
                                      [
                                        _c(
                                          "el-form-item",
                                          {
                                            staticClass: "mb-3",
                                            attrs: {
                                              label: "幼儿身份证号: ",
                                              prop: "id_code"
                                            }
                                          },
                                          [
                                            _c("el-input", {
                                              attrs: {
                                                placeholder:
                                                  "请输入幼儿身份证号"
                                              },
                                              model: {
                                                value: child.id_code,
                                                callback: function($$v) {
                                                  _vm.$set(
                                                    child,
                                                    "id_code",
                                                    $$v
                                                  )
                                                },
                                                expression: "child.id_code"
                                              }
                                            })
                                          ],
                                          1
                                        )
                                      ],
                                      1
                                    )
                                  ],
                                  1
                                )
                              : _vm._e()
                          ]
                    ]
                  }),
                  _vm._v(" "),
                  _c("div", { staticClass: "otherChild" }, [
                    _vm.checked
                      ? _c(
                          "div",
                          [
                            _c(
                              "el-col",
                              {
                                staticClass: "mb-4",
                                attrs: { span: 8, offset: 12 }
                              },
                              [
                                _c(
                                  "a",
                                  {
                                    staticClass:
                                      "list-button float-right border-0",
                                    attrs: { href: "javascript:;" },
                                    on: { click: _vm.addChild }
                                  },
                                  [_vm._v("+ 增加")]
                                )
                              ]
                            )
                          ],
                          1
                        )
                      : _vm._e()
                  ]),
                  _vm._v(" "),
                  _c(
                    "div",
                    {
                      staticClass: "second-title d-flex align-items-center mb-4"
                    },
                    [_c("span", [_vm._v("家庭情况")])]
                  ),
                  _vm._v(" "),
                  _c(
                    "el-col",
                    { attrs: { span: 8, offset: 3 } },
                    [
                      _c(
                        "el-form-item",
                        {
                          staticClass: "mb-3",
                          attrs: { label: "父亲: ", prop: "father_name" }
                        },
                        [
                          _c("el-input", {
                            attrs: { placeholder: "请输入父亲姓名" },
                            model: {
                              value: _vm.model.father_name,
                              callback: function($$v) {
                                _vm.$set(_vm.model, "father_name", $$v)
                              },
                              expression: "model.father_name"
                            }
                          })
                        ],
                        1
                      )
                    ],
                    1
                  ),
                  _vm._v(" "),
                  _c(
                    "el-col",
                    { attrs: { span: 8, offset: 1 } },
                    [
                      _c(
                        "el-form-item",
                        {
                          staticClass: "mb-3",
                          attrs: { label: "身份证号: ", prop: "father_id_code" }
                        },
                        [
                          _c("el-input", {
                            attrs: { placeholder: "请输入身份证号" },
                            model: {
                              value: _vm.model.father_id_code,
                              callback: function($$v) {
                                _vm.$set(_vm.model, "father_id_code", $$v)
                              },
                              expression: "model.father_id_code"
                            }
                          })
                        ],
                        1
                      )
                    ],
                    1
                  ),
                  _vm._v(" "),
                  _c(
                    "el-col",
                    { attrs: { span: 8, offset: 3 } },
                    [
                      _c(
                        "el-form-item",
                        {
                          staticClass: "mb-3",
                          attrs: { label: "工作单位: ", prop: "father_works" }
                        },
                        [
                          _c("el-input", {
                            attrs: { placeholder: "请输入工作单位" },
                            model: {
                              value: _vm.model.father_works,
                              callback: function($$v) {
                                _vm.$set(_vm.model, "father_works", $$v)
                              },
                              expression: "model.father_works"
                            }
                          })
                        ],
                        1
                      )
                    ],
                    1
                  ),
                  _vm._v(" "),
                  _c(
                    "el-col",
                    { attrs: { span: 8, offset: 1 } },
                    [
                      _c(
                        "el-form-item",
                        {
                          staticClass: "mb-3",
                          attrs: {
                            label: "有效联系电话: ",
                            prop: "father_phone_number"
                          }
                        },
                        [
                          _c("el-input", {
                            attrs: { placeholder: "请输入有效联系电话" },
                            model: {
                              value: _vm.model.father_phone_number,
                              callback: function($$v) {
                                _vm.$set(_vm.model, "father_phone_number", $$v)
                              },
                              expression: "model.father_phone_number"
                            }
                          })
                        ],
                        1
                      )
                    ],
                    1
                  ),
                  _vm._v(" "),
                  _c(
                    "el-col",
                    { attrs: { span: 8, offset: 3 } },
                    [
                      _c(
                        "el-form-item",
                        {
                          staticClass: "mb-3",
                          attrs: { label: "母亲: ", prop: "mother_name" }
                        },
                        [
                          _c("el-input", {
                            attrs: { placeholder: "请输入母亲姓名" },
                            model: {
                              value: _vm.model.mother_name,
                              callback: function($$v) {
                                _vm.$set(_vm.model, "mother_name", $$v)
                              },
                              expression: "model.mother_name"
                            }
                          })
                        ],
                        1
                      )
                    ],
                    1
                  ),
                  _vm._v(" "),
                  _c(
                    "el-col",
                    { attrs: { span: 8, offset: 1 } },
                    [
                      _c(
                        "el-form-item",
                        {
                          staticClass: "mb-3",
                          attrs: { label: "身份证号: ", prop: "mother_id_code" }
                        },
                        [
                          _c("el-input", {
                            attrs: { placeholder: "请输入身份证号" },
                            model: {
                              value: _vm.model.mother_id_code,
                              callback: function($$v) {
                                _vm.$set(_vm.model, "mother_id_code", $$v)
                              },
                              expression: "model.mother_id_code"
                            }
                          })
                        ],
                        1
                      )
                    ],
                    1
                  ),
                  _vm._v(" "),
                  _c(
                    "el-col",
                    { attrs: { span: 8, offset: 3 } },
                    [
                      _c(
                        "el-form-item",
                        {
                          staticClass: "mb-3",
                          attrs: { label: "工作单位: ", prop: "mother_works" }
                        },
                        [
                          _c("el-input", {
                            attrs: { placeholder: "请输入工作单位" },
                            model: {
                              value: _vm.model.mother_works,
                              callback: function($$v) {
                                _vm.$set(_vm.model, "mother_works", $$v)
                              },
                              expression: "model.mother_works"
                            }
                          })
                        ],
                        1
                      )
                    ],
                    1
                  ),
                  _vm._v(" "),
                  _c(
                    "el-col",
                    { attrs: { span: 8, offset: 1 } },
                    [
                      _c(
                        "el-form-item",
                        {
                          staticClass: "mb-3",
                          attrs: {
                            label: "有效联系电话: ",
                            prop: "mother_phone_number"
                          }
                        },
                        [
                          _c("el-input", {
                            attrs: { placeholder: "请输入有效联系电话" },
                            model: {
                              value: _vm.model.mother_phone_number,
                              callback: function($$v) {
                                _vm.$set(_vm.model, "mother_phone_number", $$v)
                              },
                              expression: "model.mother_phone_number"
                            }
                          })
                        ],
                        1
                      )
                    ],
                    1
                  ),
                  _vm._v(" "),
                  _c(
                    "el-col",
                    { attrs: { span: 8, offset: 3 } },
                    [
                      _c(
                        "el-form-item",
                        {
                          staticClass: "mb-3",
                          attrs: { label: "家庭住址: ", prop: "family_address" }
                        },
                        [
                          _c("el-input", {
                            attrs: { placeholder: "请输入家庭住址" },
                            model: {
                              value: _vm.model.family_address,
                              callback: function($$v) {
                                _vm.$set(_vm.model, "family_address", $$v)
                              },
                              expression: "model.family_address"
                            }
                          })
                        ],
                        1
                      )
                    ],
                    1
                  ),
                  _vm._v(" "),
                  _c(
                    "el-col",
                    { attrs: { span: 8, offset: 1 } },
                    [
                      _c(
                        "el-form-item",
                        { staticClass: "mb-3", attrs: { label: "" } },
                        [
                          _c(
                            "el-button",
                            {
                              staticClass: "col",
                              attrs: { type: "primary", loading: _vm.loading },
                              on: { click: _vm.saveModel }
                            },
                            [_vm._v("提交")]
                          )
                        ],
                        1
                      )
                    ],
                    1
                  )
                ],
                2
              )
            ],
            1
          )
        ])
      ])
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true
module.exports = { render: render, staticRenderFns: staticRenderFns }
if (false) {
  module.hot.accept()
  if (module.hot.data) {
    require("vue-hot-reload-api")      .rerender("data-v-5b71b081", module.exports)
  }
}

/***/ })

});